package com.example.permission.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@Data
@IdClass(RoleApiPermissionId.class)
@Table(name = "role_api_permission")
public class RoleApiPermission {
    @Id
    private Long roleId;
    @Id
    private Long apiId;
    @Id
    private String permissionType; // READ / WRITE / ALL
}

